package computerStore;

import java.util.ArrayList;


public class ComputerStore {

	
	public static void main(String[] args) {
		ArrayList<Computer> lists = new ArrayList<Computer>();
		//ArrayList<String> list2 = new ArrayList<String>();

		Inter inter1 = new Inter("inter1",8,2000);
		Samsung samsung1 = new Samsung("samsung1",8,2000);
		Seagate seagate1 = new Seagate("seagate1",256,1400);
		Asus asus1 = new Asus("asus1",20,600);
		
		Computer computer1 = new Computer(inter1,samsung1,seagate1,asus1,
				"computer1",6000);

		lists.add(computer1);
		
		AMD amd1 = new AMD("amd1",4,1000);
		Kingston kingston1 = new Kingston("kingston1",4,1000);
		WestDigitals westDigitals1 = new WestDigitals("westDigitals1",128,600);
		Gigabyte gigabyte1 = new Gigabyte("gigabyte1",20,400);
		
		Computer computer2 = new Computer(amd1,kingston1,westDigitals1,gigabyte1,
				"computer2",3000);
		
		lists.add(computer2);
		
		Inter inter2 = new Inter("inter2",16,4000);
		Samsung samsung2 = new Samsung("samsung2",32,4000);
		Seagate seagate2 = new Seagate("seagate2",1024,3000);
		Gigabyte gigabyte2 = new Gigabyte("gigabyte2",40,200);
		
		Computer computer3 = new Computer(inter2,samsung2,seagate2,gigabyte2,
				"computer3",13000);

		lists.add(computer3);
		for(int i = 0;i < 3;i++) {
			System.out.println(i+1 + ":");
			lists.get(i).display();
		}
	}
    
}
